package edu.hhu.basic.utils;

import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.jfinal.plugin.activerecord.Record;

public class FormatUtils {

	public static void DealNull(List<Record> list) {
		if (list != null) {
			for (int i = 0; i < list.size(); i++) {
				Map<String, Object> map = list.get(i).getColumns();
				Iterator iter = map.entrySet().iterator();
				while (iter.hasNext()) {
					Map.Entry entry = (Map.Entry) iter.next();
					if (entry.getValue() == null) {
						entry.setValue("");
					}
				}
			}
		}
	}

}
